<%--
  Created by IntelliJ IDEA.
  User: 几何
  Date: 2022/4/20
  Time: 16:46
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<h1>帖子</h1>
所属话题：${post.topics.topicName}<br/>
发帖人：${user.petName}<br/>
帖子标题：${post.postTitle}<br/>
帖子内容：${post.postValue}<br/>
帖子点赞：${post.postLike}<br/>
帖子踩：${post.postUnlike}<br/>
<c:forEach var="item" items="${post.replyList}">
    回复人：${item.user.petName}
    帖子回复：${item.replyValue}<br/>
    <c:forEach var="comment" items="${item.commentList}">
        评论人：${comment.user.petName}
            <c:if test="${comment.commentusers.petName!=null}">
                回复:<a href ="${pageContext.request.contextPath}/userfunction/queryothersdata?othersName=${comment.commentusers.userName}">
                ${comment.commentusers.petName}</a>
            </c:if>
        评论：${comment.commentValue}<br/>
    </c:forEach>
    共${item.replyComments}条评论<br/><br/>
</c:forEach>
</body>
</html>
